public class Chapter12 {
    public static void main(String[] args) {
        //12：定义一个整数数组，输出比平均值大的数
        int a[]={1,2,3,4,5,6,7,8,9,10};
        int avg = 0;
        int sum = 0;
        for (int i :a){
            sum+=i;
        }
        avg=sum/a.length;
        for (int j :a){
            if (j>avg)
                System.out.println(j);
        }

    }
}
